﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YuFeng.Models.Product
{
    public class ProductCategory : ModelBase
    {
        public ProductCategory()
        {
            Id = Guid.NewGuid().ToString("n");
        }
        /// <summary>
        /// 系统编号
        /// </summary>
        [Key]
        [Required]
        [StringLength(128)]
        public string Id { get; set; }
        /// <summary>
        /// 分类名
        /// </summary>
        [Required]
        [StringLength(200)]
        public string Name { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
    }
}
